-- GENERATED SPELL FOR [Overseer Theredis] --


function spell0_20416(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20416', 5348, 1)
end

function spell1_20416(pUnit, Event) --@Spellbreaker,n/a--
pUnit:FullCastSpellOnTarget(35871,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20416', 677, 1)
end

function Sorts_20416(pUnit, Event)
local choix_sorts_20416 = math.random(0, 1)
if choix_sorts_20416 == 0 then
pUnit:RegisterEvent('spell0_20416', 1, 1)
end
if choix_sorts_20416 == 1 then
pUnit:RegisterEvent('spell1_20416', 1, 1)
end
end

function mob20416_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20416', math.random(1500, 3000), 1)
end

function mob20416_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20416_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20416_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20416, 1, 'mob20416_Action')
RegisterUnitEvent(20416, 2, 'mob20416_Leave')
RegisterUnitEvent(20416, 3, 'mob20416_Kill')
RegisterUnitEvent(20416, 4, 'mob20416_Die')
